<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<table border="1" cellspacing="0" width="60%">
    <thead>
    <tr>
        <th>姓名</th>
        <th>电话</th>
        <th>职业</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <tr th:each="message : ${pageInfo.list}">
        <td th:text="${message.name}"></td>
        <td th:text="${message.phone}"></td>
        <td th:text="${message.job}"></td>
        <td>
            <a th:href="@{/thymeleaf/del(id=${message.id})}">删除</a>
            <a th:href="@{/thymeleaf/findById(id=${message.id})}">修改</a>
        </td>
    </tr>
    </tbody>
</table>

<div>
    <a style="margin-left: 5px" th:each="i : ${#numbers.sequence(1,pageInfo.pages)}"
       th:text="${i}" th:href="@{/thymeleaf/findByItem(pageNo=${i},name=${name})}"></a>
</div>
<form action="/thymeleaf/findByItem">
    姓名：<input type="text" name="name" th:value="${name}"><br>
    <input type="submit" value="查询">
</form>
    <a href="/html/message/addMessage.html">添加</a>
</body>
</html>